#ifndef _ENRECOM_ 
#define _ENRECOM_

#include"Recommander.h"
#include<nlohmann/json.hpp>
#include<string>
#include<string.h>
#include<fstream>
#include<iostream>
#include<vector>
#include<unordered_map>
#include<unordered_set>
#include<set>


using std::string;
using std::vector;
using std::unordered_map;
using std::unordered_set;
using std::pair;
using std::set;

using json=nlohmann::json;

class EnRecommander
:public Recommander
{
public:
    EnRecommander();
    ~EnRecommander() {}

    virtual string recommander(const string &) override;
    void read_dict(const string &);
private:
    vector<pair<string,int>> _wordFrequency;             
    unordered_map<char,set<int>> _index;
};

#endif

